package springframework.bean;

/**
 * @author Cedric
 * @date 2021/11/16 11:28
 * @description 定义一个Bean组件
 */
public class UserService {

    private String uid;

    private String company;

    private String location;

    private IUserDao userDao;

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public IUserDao getIUserDao() {
        return userDao;
    }

    public void setIUserDao(IUserDao IUserDao) {
        this.userDao = IUserDao;
    }

    public void queryUserInfo() {
        System.out.println("查询用户信息" + userDao.queryUserName(uid) + company);
    }

}
